<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <title>地图显示</title>
    <style>
      html,
      body,
      #container {
        width: 100%;
        height: 100%;
      }
    </style>
  </head>
  <body>
    <div id="container"></div>
    <!-- 加载地图JSAPI脚本 -->
    <!-- <script src="https://webapi.amap.com/maps?v=2.0&key=您申请的key值"></script> -->
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=31760d34b805b52a3d9186d753e239c6&&plugin=AMap.Scale,AMap.ToolBar,AMap.ControlBar"></script>
    <script>
      var map = new AMap.Map('container', {
        viewMode: '2D', // 默认使用 2D 模式，如果希望使用带有俯仰角的 3D 模式，请设置 viewMode: '3D',
        zoom: 11, //初始化地图层级
        center: [116.397428, 39.90923], //初始化地图中心点
      });
      let a = [{ a: 1 }];
      console.log(a);
      for (let it of a) {
        console.log(it);
      }
    </script>
  </body>
</html>
